package com.sales.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.domain.Page;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lihu on 2017/9/7.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReferralCodesVo {


    // *** 上一级邀请码
    private String rootCode;

    // *** 我的邀请码
    private String myCode;

    private int totalPages;

    private Long totalElements;

    //子级邀请码信息
    private List<CodeInfo> myList = new ArrayList<>();

    public ReferralCodesVo(String rootCode, String myCode) {
        this.rootCode = rootCode;
        this.myCode = myCode;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CodeInfo {

        private String code;

        private String mobile;

        private String status;

        private String name;

        private int count;
    }

}
